Change the way to set username and password