Using general getGroups function.
Removed pilots field.
Updated validations and added unit template validation.