It seems there are missing braces { } around the statements to be controlled by the if statements.
The first one,
1 2
if(userchoice == "admin")
getch();
only the single statement getch(); is controlled by the if, that control block ends there. Later there is an else, but because there is no corresponding if, it is unmatched.