Moved checking of valid fingerprint to database