adds checking for same user on edit page