Registation form error handling fix