Fixed date validation. again
fixed bug
bug fixes