protects against deleting instances of store and person associated with food. Also prevents from redirecting to index when logged in.