Added has_many to cookie and validation for name