add checkbox to remember username and password

replace default swtich control with checkbox to remember username and
password.