Added register new user functionality