Update access_page_controller.rb

fixed something in the logic