How to fix validating identity issue