Test for define loginname and password.