Finalize session05 homework

- use flash for the error message instead.