If you are staying in a hotel, holiday accommodation or similar, you are legally obliged in Germany to fill in a registration form.