Updated login script with test EmptyFieldslogin