fixing date validations