refactored calendar into external file, added check for allowing to enter date from current day.