validations and test for name field