Fixed session validation code
Version 1.2.3