register and credintial