Check root account existence before creating...

- code cleanup too...