Added sign in/out functionality. #2