Fixed empty string validation for external id and external user id