Fix the login page using ajax