init login process