add input success and error