new module for err message added, and flash.err puts on modal