user name and password are passed into html function