Adds error messages and makes changes to the example page