validation of date on advanced search