fixing a bug with the login page