testing automatic password for both