split user class, added login register