Update app/models/announcement.rb

Add validator rules