Add headers to register function.

Fix Sinchung_url bug.