added basic validations for the priority and work_type