Fixed typo in cookie login code