Added attr_accessible

Added the attr_accessible for name field.