check for required input fields