removed die when validate_key doesn't pass