Add patch to support login