def the valid card