add logout to connect-devices view
fix login loop issue
Merge pull request #79 from sarchila/master

add logout to connect-devices view & fix login loop issue