Form validation and category mapping with image uploading