register Device in loginCtrl