Fix for bug 968952 and bug 969165

- Fixing application alias validation regex