Try-Catch Block Added for validation method

This code block added because if there’s no openid input on requesting
url, application can suffer from errors.

That will fix the issue.