passwd function.