Added notification of why it failed on invalid input