getting registration to work