Update UserController.php

Add support for using a callback as redirect route instead of only strings