This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
NOTE: "login pages" may be fine for training purposes, but for real-world web applications, please use the J2EE built-in login system. User-designed security systems are almost universally insecure.
When a page is displayed in JSF, the control values displayed will be whatever values were in the backing bean (Model) associated with that page (View definition). To clear the display, clear the backing bean values. Do not attempt to directly manipulate the UI itself.
An IDE is no substitute for an Intelligent Developer.