implements new user's registration