Login when setting username and password.