Adding random password function