add check for String type to the validateDate closure, since dates are stored as strings + test
added a comment to validateNumber