Form hides error message on submit