add function to generate random_password