Added function for when adding a user to a task