Closing HTTP objects. Adjusted NewUser func