code: function getInput() {
  
      var account = document.getElementById('account').value; 
  	var email = (document.getElementById('email') ? document.getElementById('email').value : ''); 
      var password = document.getElementById('password').value;
  	
  	return {account: account, email: email, password: password};	
  }
docs: retrieve account & password from HTML elements