error in detecting required fields