add login register js