Added checkPassword API