updates for registration form validation;