added name validating