use ->to_note() and from_note() for flash setting errors in session