Refactor and add the login test to saucelabs