Implemented form validation for InspectionViewController.