solve logged in problem