added code to reactivate the user's account