Better input validation for bottle command