fixed a bug with the username and password passing