submit button click event will trigger form validation instead of text field losing focus