created convenience method called setRandomPassword