Bugfixes: login, redirect, layout.