logout working now, removed log function in stream_get