Add checks for delegation revoke.
Some formatting changes.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>