fixed check on stock show page to handle deleted users