Working Date picker and validation