Test setting username and password