public function setUsernameField($uf)
    {
        $uf = trim(filter_var($uf, FILTER_SANITIZE_STRING));
        if (empty($uf)) {
            throw new InternalServerErrorException('No username field provided.');
        }

        $this->usernameField = $uf;
    }