Fix logins, use querystring and $.param