Fixed major bugs

* The data returned in user class was only for the first registered user
* Fixed bugs trying to login user