Fixed bug, where the app always log into the first user from the database. This is done by passing UID of the real user, who is logging, to UserController.login.