The second error that you saw after moving the connections include to the top is a result of have an extra space between php tags. Make sure to not have any new lines of spaces between php tags.
I'm not sure why using dmxzone will break the registration page. But it could be that you just needed to move the connections include to the top.
If you are still seeing the error please post back with your registration page to see where the issue is coming from.