Fix of the authetication check
Fix authentication issues
Testing scripts