form validation for category form to prevent empty categories