validation of registrationForm