Debug app token validation and add in error messages