Added check to see if user owns document