fixed issue that login dialog was not displayed when the user accessed
at first time.