basic registration working