Login work - with intermine disabled

* #410, #1625, #1498