public void changePassword(String username, String password) throws UserExistsException {
        User user = getUserByUsername(username);
        user.setPassword(password);
        try {
            saveUser(user);
        } catch (UserExistsException e) {
            throw new UserExistsException("Tne new password equals to the old one! Think up other password!");
        }
    }