make method for generaterandompassword