add code for ble scanner and integrate with successful login