adding validations on name field