implemented a sign out button

the sign out button is in a separate view so it can be reused in
different pages