added error messages between pages