What are the steps involved in document registration?