Abstract Login class

implement login and logout method