Use passwordCompare method to compare passwords.