add validation for filds