with logout working