char *setPswd(){
char *p1 = (char*)malloc(128), *p2 = (char*)malloc(128);
printf("password: ");
scanf("%s", p1);
printf("confirm password: ");
scanf("%s", p2);
while(strcmp(p1, p2) != 0){
printf("passwords do not match\n");
printf("password: ");
scanf("%s", p1);
printf("confirm password: ");
scanf("%s", p2);
}
free(p2);
return p1;
}