Made the login form handle as ajax