Still, using strcmp() or strncmp() which are standard, would be better. But you've seemed to ignore what people have said about using gets()!
Use fgets(), no excuses. Your code doesn't work in other words, what's to say I enter a password longer than 20 characters? Oops.