login adapted