Refactored Config and Data files to return objects instead of constructors.
Modified pages accordingly.
Removed validLogin and invalidLogin from LoginPage and made it generic.