Device for checking validity of bank notes