Updated login process to match new functions in ding_user