login and save user cookie finished.