How to block 'today' and past dates through conditional logics