Adding ajax handlers for login/signup.