login\logout dialog and register dialog