Fixed logged_in method of static_pages_controller