adjusted error and location if user already exists in database
merge local with remote