Added a compare method to use with local authentication