Implement user selection in login dialog.