Fix legacy login

Created by  Eelco Dolstra  on July 9, 2013
PFB5ZUQWW67FRYY54QGTAVTWYMUKXLXRA2XCY3IWK6HZNE6DDLFAC
Change contents