UI code of register page