added ability to uploadAvatar