Cleaning up registration flow.