changed date validtion to use node-validator