St.session_state property defined with component

I’m making a multiple pages app with streamlit 1.0, and now when I define st.session_state.account defined with st.text_input(“”,key=“account”). When I want to use st.session_state.account in other .py file of other page, it says “AttributeError: st.session_state has no attribute ‘account’.”