Issue when changing the user's role