debuged logout on register