Move country and city detection to the API and use them when creating a user