Reverted back to function logout as need to call uows