Added selenium front-end tests.
Changed how a failed login source is shown so it's easier to test.