Got registration working