Added validators and test for datetime