impl login register and comment