form submit bugs fixed