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.
Validate Method Updated
Merge pull request #1 from gokhanakkurt/master

Try-Catch block added for validation method