disable functionality if any of the fields are not filled out correctly