Please discuss the correct point in time for registering your thesis with your supervisor. From an administrative point of view, you can register your thesis any time as soon as you have found a supervisor. You can already register your thesis even if you have not yet completed all courses. Note that you have to stay enrolled until the day of your thesis submission.