take logged user with error