pagination on userpage and error message