Fix login page layout on mobile devices
Add frontend side of cookie auth