add validation to custom templates, updated styles