Added ability to generate random passwords if password strings equals to ~