Seems that when trying to get a "Password" there is no value set, whether this is a data or codding issue, we can only speculate.
I suggest you take a look and really read/follow the following links, debugging will help you immensely when codding:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]