add a condition to check if the user has been deactivated