prepared initial login handling structure