changed login dialog to custom popup