init the part of login