AJAX Login and Registration.