Get ride of the \n in your scanf's.



scanf("%s\n",ptr->FirstName);

to...


scanf("%s",ptr->FirstName);