Form Submit validation issue for categories