finished registration functionality