added random password api