Update announcement_controller.rb

add logged in check in announcement controller