updated card validation