Rename error_case method to invalid_input