Changed implementation of verifyPassword via promises.