Clean up application

* add flash error message