Modified to receive base64 encoded value for password.