fixes a bug where user object was not saved from authentication