Fix logger error
Addd logging to login and change the logic
Rename log type
Fix issue of path expand and print function
Fix issue of secret link

If user copy the link from browser and the link is already convert to
the url containing 'init', it will exit. Now fix it.