check for name before registering