Added sign-in functionality.
Merge branch 'sign-in-out'