Updated the base64 funcion for password