register functionality minus redirect completed