Added cookies to allow persistent login