beginning of login and transition