public static function checkCredential($login, $password)
    {
        $account = User_Account::getUser($login);
        $credit = new User_Credential();
        $credit = $credit->getOne("account_id=" . $account->id);
        if(!$credit){
            return false;
        }
        return $credit->checkPassword($password);
    }