validate Copy Application form

Validates data submitted in the Copy Application form, so there's no 500 when the user leaves the domain field blank (http://manage.dimagi.com/default.asp?88783#528840)

This PR is 90% of the way there - when an invalid form is submitted, it redirects to application settings rather than staying on copy application, although the form validation error message still appears when you return to copy application.