Added personalized error messages for unauthorized users.