Can now handle input errors