Added user badge function