Edited input type check