Added login dialog

Bugs: Authentication check fails on json parse