add login, register api