create users form validation, some refactoring