added login debug