input type error fixed