add form ids and error blocks to resource and metadata forms