Fixing validation for date