Added framework for displaying invalid messages