private static function alert(string $message, string $code) {
        global $json;
        if ($code !== 'success' && $code !== 'info') {
            $message .= ' Contact us if problem persists.';
        }
        $json['alert'][$code][] = $message;
    }