Adding authentication to routes and finished login functionality