Small fix, add support save cookie after login