fixed register user always returned null token