basic alert function now working after submission of form