public User viewUserbyName(final String name) {

        for (User u : userList.getUserList()) {
            if (name.equals(u.getName())) {

                return u;
            }
        }
        return null;
    }