added super simple validation for required fields