finally fixed registration to work
updates