Fixing session date validation