Add update method to user api&some small bugfixes.