add validation for empty fields