js updates for password validation
merged changes