fix for session clearing (sign out code)