Improved the application name validator