added validation for single name