added __construct(0 and renamned doLogin to login