Fixed login update and login with cookies.