moved all cookie setting to the submit event