Added check to see if we are on the login page