Split the login function
Reload the cookies to speed up