Changed routing, so when user is already logged, it is redireted to main page instead of login