Fixed getvalidsession error