added password logic to validation js