fix logged in