bug fixed preventing the login dialog to appear after inserting wrong
credentials and canceling
fixed a problem in uri json parsing