fixed regression bug with log out button