Added validation to date selection.
more fixes.