SSH session closes after typing correct password

hi guys need some help. when ever i'm login ssh to aix server session always closed.

when trying t0 type wrong password the session still continues, but we tried the correct password it automatically ends.

what could be the problem to this

please see .profile details

PATH=$PATH:$CTL_RUNTIME_DIR/is/bin:$CTL_RUNTIME_DIR/is/system:$CTL_RUNTIME_DIR/db/bin:$CTL_RUNTIME_DIR/db/system:/usr/local/mbl_sudo/bin:/usr/bin:. export PATH
set -o vi
cd ../../is/log
TERM=vt100
export TERM
stty erase ^?
echo ""
echo "###############################################"
echo "#### ####"
echo "#### REASON for using james login ####"
echo "#### ####"
echo "###############################################"
echo ""
echo "Enter Your Name : "
read YOURNAME
echo "Enter Your Reason for using James login : "
read REASON
THIS_ASSET=`who -m | awk '{ print $NF }'`
echo "$YOURNAME | `date` | $REASON | $THIS_ASSET" >> /home/runtime/is/log/reasons.log

Check is user password is expired .. OR tty login is disabled for user .

checked the account but was enable. Thanks

I faced this probs when my account was expired .. on Redhat and CentOS .

I changed my password and now it's working
## Check
# change -l username
# chage -l shirish
Minimum: 0
Maximum: 99999
Warning: 15
Inactive: -1
Last Change: Feb 07, 2012
Password Expires: Never
Password Inactive: Never
Account Expires: Never

OR check shadow file as below if not change
shirish:$1$MpavTBqg$wa827pWNqFMlCDzSx9D.w0:15377:0:99999:15:::

OR you can edit this file by
# chage shirish
Changing the aging information for x82104
Enter the new value, or press ENTER for the default
Minimum Password Age [0]:
Maximum Password Age [0]: 99999
Last Password Change (YYYY-MM-DD) [2012-02-07]:
Password Expiration Warning [15]:
Password Inactive [-1]:
Account Expiration Date (YYYY-MM-DD) [1969-12-31]:
--> Press Enter for default

-- Shirish Shukla

hi ksh: chage: not found in AIX

Try --
lsuser -f <user-nm>

chuser maxage=0 username ???

passwd -S username ???