Fixes bug with username and password sending.