Small change to datechooser

Implemented checkup of date is valid