(Hopefully) added support for https on login page