Assigning role to user.