Created a loggedin page that is redirected to after loggin in or out, changed the Sign in button to Sign out after logging in. Created log out page and functionality.