Fix initial login issue on fresh db