validation of two dates (from-to)