update registration example and validation flow