better way to use root to login