How do I turn off getting the error messages before submit button pressed