Replace pop-up error message with an error in the form validation