Submit form

implement submit form and preserve username & password