passing tests for user adds learning with invalid input