errors for ajax registration