Added passwod validation for sync script

Change-Id: I995a2eb5732637f81cc655a80a8a76c71593093e