now capturing all form data and outputting it properly, still needs refactoring.