refactoring oauth2
Merge branch 'dev'
refactored to return error
testing error
readme updated