In reference to comment : https://github.com/eileneisabelSalonga/boardExercise/pull/1#discussion_r13060715
You can re-write this block as
```
try {
$account = User::authenticate($username, $password);
$_SESSION['id'] = $account->id;
$_SESSION['username'] = $account->username;
$_SESSION['name'] = $account->name;
} catch(UserNotFoundException $e) {
$page = 'login_failed';
}
```
You can then create a separate login_failed page in view