working on validation of date field