added simple check for registration form validation