get logout working