work in progress
refactored card validation logic into django form