Update ModeController.php

Controller for Safe-Mode check