Disappearing error message when selecting next page