Please return a boolean po instead of the page itself.
And you will determine the page in the controller part.

```php
// controller

$page = 'login_failed'

if ($user->login()) {
    $page = 'login_success';
}
```