fixed error when nto logged in