Add function to ensure user is pin's owner before pin update or delete.