submit form , save data and alert