fix registration form errors