add attachment validations to category