public static function login($rank = 1, $id = null)
    {
        static::provider()->set('valid', true);
        static::provider()->set('rank', $rank);
        static::provider()->set('id', $id);

        return static::user();
    }