Fixed a login bug using base64 library