Bug fixes for creation of application user