fix passwd reference
fix case consistency and password sending