fixing problem with https on login