formatting and checking invalid addition error message