Add logic for showing login dialog - so a blank page is not shown:  1) Redirect to dashboard if user is already logged in.  2) Redirect to login page if user is not logged in.
Add logic for showing login dialog - so a blank page is not shown:
 1) Redirect to dashboard if user is already logged in.
 2) Redirect to login page if user is not logged in.

openenergymonitor/emoncms3,openenergymonitor/emoncms3,openenergymonitor/emoncms3