date checking save and agree button