validations on getName