Fixed issue #26
Removed input type check