allow nil value for username of custom