login fix + improved errors management