added maxlengths to settings inputs