Add authentication
Separate authentication check to isAuthenticated() method
Redirect to / instead of /login which does not exist
Add missing semicolon
Remove local authentication method
Add /login just for redirection