clear purpose val on submit