Added new test class for broken links; Refactor code for testing Invalid Login