improved login and user storage: it was not able to retrieve the user