fixed wrongly-cookied login behaviour
detect more quality values