Check your stored password by:
more /etc/passwd
check for the shell location from every lines of the files.
Compare these shells againts the:
/etc/shells
If there's path missing / not defined in the /etc/shells, just add that path (make sure you have installed the shell).