fixed error message in console when not logged in