Ported part of commit 7f217395ab723b5edb1772ebb77079dbeeb61b22 from USM-RCG: field worker password validation with bcrypt