Huh? As far as I know, this would only happen if you typed the wrong password (it will not tell you at the login screen if you entered a wrong password). It could also be possible that your shell it set up to a fake one, like /bin/false so that you get logged out immediately, but this is unlikely. Log in as root, change your password and check the /etc files.
|