added validation so both dates have to be selected
added validaiton so that we can only choose a from date that is before to date