adding cookies for persisting login