Handling dialog mode as null for basic auth