Added signin and signout logic.
Merge branch 'sign-out'