added checking for future dates