fix issue with date validation when value is not a date
fix issue with validation of $unset keys