form validation for new user
form validation for edit user