validations for codenames