logout working and master activity killed