adjusted routes and method for authentication