registration logic finish