Abstract version of the Login class. PHP