Update UpdateController.php

* Make username & hostname working with Windows too
* add $rightsecret variable to send to views to inform the user