added validation that makes an image necessary to submit the category form