check if form fields are filled