Add alert if the form is invallid