updating user api to handle addresses