Adding authentication middleware for protected routes.
Adding authentication middleware for protected routes.