Changed login ui mode to popup

added config.Properties["loginUi"]="popup"; before calling authenticate()