add alert on submit of form