Logged in check bug