added user authentication, sign out functionality, sign-in redirect