Add check to user be logged in when unlink account

We need to ensure that user has logged to prevent unexpected error.