Handles bad URL, logged-in user visiting authentication page