add get user badges function