Changes to login tests