fix registration form error