Added public function to set user data from client