fix luhn validator and formatting
Merge pull request #790 from paranoida/fix-luhn-validator

fix luhn validator and formatting