added ajax to login page