add register fun.
add remember fun when login.