updated validate function
Merge branch 'master' of https://github.com/CClerville/moneytxt