Allow a boolean to be passed for hashPassword