Added confirm password and js form validation