Right examples of registration working code