prevent a logged in user from accessing the login page or signup page