add login, and repair errors