make use ot NewPassword static functions