Added a fix to prevent authenticated users from going on the login page