Implement verifyPassword