fixed empty password, if $field == $formField

Maybe instead of this fix, you want to just add warning "don't use 'password' in $formField"? At the end I am sticking to you 'pwd' convention, but world should know. :)