TODO Add template valdiation. All variables in template should be filled, if not an error should be raised Fix error handling. Instead of throwing errors after first error, validate everything and then print error list