enables/disables the submit button based on required values being in place.  hides the keyboard on outside tap.