+ implement input validator for range checking