change test to check login variable instead of hardcoded value