check valid form before submitting

doesn't actual form submit so we have to look into how to scroll to the
first error