Got rid of the is_valid variable since they were extraneous
Two lines were the is_valid variables are now gone because they were extraneous
Added a check to see if the from date is farther in the future the the to date