created approveduser object and added ability to set the role of a user