error messages now clear on input