Fix layout login dependency