Fixing validating on date and timepicker