add simple validation on required fields