Make Ticket Information a required field when replying or closing a ticket

Make Ticket Information a required field when replying or closing a ticket

We are setting up our Ticketing system and we wanted to make ticket information such as category and sub category to be a required field before an agent can reply back or close the ticket.