validation of registrationForm fix to work