mobile api update login and register