Added the date validator
Added tests for validators