added attr_accessible lines to both models