added paging mails
added authentication error handler