addedd register new user functionality