added log command line option
added dialog for random password geneation