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.