debbuged routing and login out