fix sign in bug and add register, signout
add package.json