Logic to make text input disappear

Hello Everyone,

I am facing a logical challenge with Streamlit

For my web app I have created a Login page- with a username and password combo, the code control flows to the main block of code when the u/n & pass combination is right.

Now the problem is once the combination is correct and moves into the main function of the code, the user input for username and password still appears.

Is there a way i can disable the user input box?

Please advice