Now uses tokens
Added base64
Changed error message
Now uses tokens or passwords