Added boolean validation