Fix logging refactoring bug
fix boolean scaffolding bug, implement return url after login