change alert to redrect on submit of form