Changed layout, theme, added logic for login scheme and sessions