fix login and clean code
Merge branch 'UIV2' of https://github.com/capensis/canopsis into UIV2