Made a better check for credits.

It now checks to see if the item is purchasable before checking to see if it was purchased.  Also made it so that it checks if the logged in user made the purchase.