\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{beaver}
\usepackage{textpos}

\title{The title}
\author[the author]{\includegraphics[width=2cm]{cat}\\The Author}
\institute[institute]{The Institute}
\date{\today}

\begin{document}

\begin{frame}
\maketitle
\end{frame}

\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{100mm}(.85\textwidth,-1cm)
\includegraphics[width=2cm]{logostackedblue}
\end{textblock*}}

\begin{frame}{Motivation}
Now the logo is visible
\end{frame}

\begin{frame}{Checking this page}

Is it on this page too?

\end{frame}

\begin{frame}{An Example with Two Columns}
\begin{columns}[t] % align columns, t is for "top"
\begin{column}{.48\textwidth}
Left Part
\end{column}%
\hfill%
\begin{column}{.48\textwidth}
\includegraphics[width=4cm]{cat}
\end{column}%
\end{columns}
\end{frame}

\end{document}