fixed the logged in stuff