make validation work