check if the required field is empty