correctly pass formOptions to registry fields template