private function incrementLoginAttempts()
    {
        $rc = new LoginRateControlEntity();
        $rc->ip = $this->ip;
        $rc->username = $this->username;
        $rc->timestamp = time();
        $rc->save();
    }