Ajax error handling for Registration form