<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_logged_user(self):
 """Check if a user is logged. Otherwise, an error is raised."""

        if not self._env or not self._password or not self._login:
            raise error.InternalError("Login required")