Add validation on from date and to date