Created error for invalid input