Added private function for RequiredFieldException