Added code to handle adding of user.