added more registration functionality