@Override
	public int loginUser(UserRequest request) {
		int result = -1;

		User unvalidatedUser = new User(request.getUsername(), request.getPassword());
		int index = users.indexOf(unvalidatedUser);
		if(index > -1) {
			IUser validUser = users.get(index);
			result = (validUser.getPassword().equals(unvalidatedUser.getPassword()) && validUser.getUserame().equals(unvalidatedUser.getUserame())) ? index : -1; 
		}
		System.out.println("User login return code: " + result);
		
		return result;
	}