Add form path detection