Update LoginController.php

$this->getRequest() is deprecated. The Request object must be sent in as a parameter and it requires the additional use statement as well.