Add missing security check