Updated 'updateAccountInfo()' to check if password and confirmPassword fields match.