Functionality of registration user is ready with AJAX and JSON