fixed not logged in bugs