fixed form submit and alert