Moved the validation out into separate classes.
Changed the UserStepDefinitions.domain field so that it is now set with configuration.
Updated the pom.xml so that it now starts the scratch webapp before running the integration tests.
Created integration tests for the CreateUser class.