add flash error messages and mandrill email capabilities