public String login() {


        boolean success = loginDelegate.login(login, Encryptor.encrypt(password));

        if (success) {
            return "index.xhtml";
        } else {
            FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Wrong login or password"));
            return "login.xhtml";
        }

    }