AJAX login and registration work.