Hide loading modal when AJAX request returns error
Update Registration : better handle errors and logs