How to handle errors in immigration applications