Added the auto removal of invalid keys and user api's deactivate services