adding constructor method for Login class file