Cookies-aware login.