Added a Sign In and Sign Out function