You can then get rid of these changes because the error message will automatically get displayed on any page in openmrs that that the use if redirected to as long as it includes the header.jsp page which findPatient.jsp does.