public function alert() {
        if (count($this->errors) == 0)
            return '';

        $out = '';
        foreach ($this->errors as $error)
            $out .= "<p class='alert error'>" . implode(' ', $error) . "</p>";

        return $out;
    }