Simplify generate password fucntion to use the NewPassword function cleaner.