feat(client): new globals res with user details
fix(client): change where user token is saved
feat(client): functional login and register