removed the rule of not being able to choose the date later than today.
debugged