pub fn check_input(input: &str) -> Result<(), PgmqError>
panics if input is invalid. otherwise does nothing.