Added code to add and remove user to array of users.