Extracting Login class