add verify_code function to user
addressing comments
fix pep8
Merge pull request #90 from teravest/addcheckcode

add verify_code function to user