login/edit: build input html from prepared attributes