Enhanced error handling if enable_callback: true

With the option enable_callback set to true validation errors can
occur. These patch fetches the error messages and use a properly styled
flash message.