you cant include a form page in another page using require_once() like you have done and expect it to work.
the problem is that the server behaviors that should be added in the page before the doctype, are now on the page inside the body.
You will need to use something like framework builder to add the apply page as a plugin instead of using require once. Framework builder is included with both Data Bridge and design Extender.