using attributes_for instead of create directly