Unique name js validation.