Added attribute array parameter to all input field functions.