finished loading login register logic