Sets up show/hide if else statements for the error messages