added assert

Added extra check because of Selenium issue https://code.google.com/p/selenium/issues/detail?id=4667. If the user cannot login then the test should not continue beyond this point.