almost done the registration feature