fix and clean login by using base64 from Google Closure library