Race: Race of your custom unit
Type: Unit, Custom
You have to change "Melee" to "Custom"
You can also do the same with triggers.
Edit: does not work like this. There is no custom. The unit should be under unit, melee if it can be trained from a building of that race.