public static function attempt($fields, $remember = false)
    {
        $hashed = static::hash($fields);

        $data = static::query($hashed);

        if (count($data) > 0) {
            //Set the user
            static::$user = static::orm($data[0]);

            static::save_session();

            if ($remember) {
                static::save_cookie();
            }

            return true;
        }

        return false;
    }