Fix issue where onSubmit was being checked for null when it should be length checked
Merge pull request #117 from pward123/ui-onSubmit-bug

onSubmit is being null checked when it should be length checked