Created custom HandleErrorAttribute for logging errors