# Login System Error

**URL:** <https://forums.unrealengine.com/t/login-system-error/408011>\
**Category:** Blueprint\
**Tags:** stat-system, unreal-engine, Blueprint, question, slot-name\
**Created:** [October 26, 2017, 1:39pm UTC](https://forums.unrealengine.com/t/login-system-error/408011 "2017-10-26T13:39:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joyful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joyful](https://forums.unrealengine.com/u/Joyful)\
**Post date:** [October 26, 2017, 1:39pm UTC](https://forums.unrealengine.com/t/login-system-error/408011/1 "2017-10-26T13:39:51Z")

</div>

So, I was using my knowledge to my best. And created a client sided login system, and it seems to work in some parts but not functioning as a whole. The part that works is checks the user name and loads game from slot named after the username. And then loads the password and compares if the password is correct. If it’s correct then it sends info to mygameinstance to load game from slot and update all info to mygameinstance such as players class, level etc. But it seems to be not working, indications are player class isn’t being saved and username not being showed in the menu. I went over to debug for 4 days. No luck on fixes.

This is where it checks if the save slot exists and check the password ----\> custom event update user info cast to mygameinstance.

 ![217997-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/3/d0356ecfb8af2f92d88396cf5f540b8d1b5eb7dd.png)

Mygameinstance custom functions to save user stats/ info.

 ![217998-capture2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/5/5353bb2ad6968b1017ec0737d14b20dcc28a3af0.png)

The get userinfo function. The SavetheGame is parent class is SaveGame. Mygameinstace parent class is Gameinstance.

 ![218000-snip.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/3/f43523078abfb9e4e0e0bc2313e1e459164a047f.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [October 26, 2017, 7:43pm UTC](https://forums.unrealengine.com/t/login-system-error/408011/2 "2017-10-26T19:43:24Z")

</div>

I have had similar saving issues before, it always came down to the game overwriting the save game objects with their default values, this happens when I restart the level to load the values in after the player chooses their save from the main menu. I placed a check in my save blue print to not overwrite the save game object values if they are equal to 0, an array is empty, or if the save game loaded boolean is set to true. Hope this makes sense

---

<div class="post-metadata">

**Author:** ![Joyful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joyful](https://forums.unrealengine.com/u/Joyful)\
**Post date:** [October 29, 2017, 1:11pm UTC](https://forums.unrealengine.com/t/login-system-error/408011/3 "2017-10-29T13:11:47Z")

</div>

Do you mind showing me how you did it in your blueprint?

---

<div class="post-metadata">

**Author:** ![Denis\_Lambert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Denis\_Lambert](https://forums.unrealengine.com/u/Denis_Lambert)\
**Post date:** [October 29, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/login-system-error/408011/4 "2017-10-29T15:57:34Z")

</div>

Hello. The SaveGame To Slot should be the last node of the function. That’s why your player class its not saved.

---

<div class="post-metadata">

**Author:** ![Joyful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joyful](https://forums.unrealengine.com/u/Joyful)\
**Post date:** [October 31, 2017, 11:50am UTC](https://forums.unrealengine.com/t/login-system-error/408011/5 "2017-10-31T11:50:33Z")

</div>

I’ve tested several times and it still wouldn’t work. I think the main problem is getting the player data by loading from existing save slot. For whatever reason my gameinstance cannot load the data from slot.
