login/edit: generic setup of input attributes