login logout working with sorcery