update login register api