add errorcode to /joinnetwork, add validate exist network before processing email registration