renamed option errorcontainer to formerrorcontainer