Added in check to see if the key belongs to a user

A key might exist in the database but might not be attached to a user object. If that's the case than it's not a valid key card.
Merge pull request #8 from Taar/master

Added in check to see if the key belongs to a user