Validation of application base name and package name

The input in the application base name and the application package name is not validated. This can be helpful, if people think dashes or other special characters are allowed in Java package names.
Also with the validation I added, you cannot include < or > in the application name, so no XML errors can be created in the pom.xml