Added event triggers for form errors