fixed bug with not logged in user