add some validation logic to make sure that attribute names do not have spaces