Separate the sign in and sign out scenario for login feature to make them reusable to other feature.

GCP-10197 & GCP-10198

Reviewer: Mae Isabelle Turiana