Fix cookies breaking user login