Login script working, but some tests now broken