added login popup, testing addDevcie function