maybe it's caused by streamlit-authenticator version 0.4.1 I tried downgrading to streamlit-authenticator==0.3.3 and it still works fine