Added more code reuse to mongoapi. Made updateUser check if token list is empty and remove, instead of inside clearToken.