form submit implementation of @bitstorm (github)