added date validation on server