fixed form submit bug