OAuth Validation. Fix erros with handle files. Full refactor