Add validation for name field.