Remember what the user entered on the login page

Record the user's login info so it can be shown as the default the next time the user logs in. 
Storing the password in localStorage would let anyone that has access to your browser to see your  password in cleartext. There is work on storing user accounts server-side which can store them encrypted while sending them to the IRC network over SSL for secure transport.