Added date argument validation