How do I use conditional logic to either add a page or submit info?