added card validation