NewRepository.js changes to pw and confirmPw (checking if they are the same)