Code:
#include <stdio.h>
#include <string.h>


int main(void)
{
char name1, name2, pass1, pass2;

printf("input username: ");
scanf("%s", &name1);
printf("input password: ");
scanf("%s", &pass1);

puts("registration successful");
printf("USERNAME: ");
scanf("%s", &name2);
if(strcmp(name1, name2)==0)
{
puts("good now input your password");
}
else
printf("badbye\n");

printf("PASSWORD: ");
scanf("%s", &pass2);
if(strcmp(pass1, pass2)==0){
puts("logging in successful");
}
else
{
puts("wrong password");
}

getchar();
return 0;
}
anyone there?? i need help here can't get it right....