add input validation (very basic)