Fix #12: Minor fix to validation of input type