Fix and improve login to gitbook.io