Will show error message on submit if not valid