impliment coin validation