Began submit function on client