An object oriented login