fixing required fields