working on logout script