handle invalid id; improved error page