new wat to check for hashPassword