validation for name, role, and friend's name