prevent empty entity name

Prevent from keeping the entity name empty. If the entity name is left empty it will not work and you will get errors when tryin to use it.