Update security. Store token in credentials