Fixed updating a user. Improved logging. Added update user route