Added constructor argument to validate nickname.