add registration form validation