Added the method to update the user.