fixed first user login not persisting after generating the initial login secret