add updateInfo method
fix wrong argument pass to error function
add updatePassword function.
for testing need, user should set their password infomation in test/index.html