Improving password generating