fix missing import
add method attribute to messages form