add name validation

Conflicts:
	polaris/templates/chart_edit.jinja
	polaris/templates/dashboard_edit.jinja