added loginUsingId method.