adds required tags to form