How to apply for a status of residence