password-addition functionality