Fixed broken login tests