Fixed code to check if entered date is in the future