generic presence validator for textual inputs