change message when code is blank