reorganized login process

removed old code used in old multisession solution