Adding Date validation
-other minor fixes