Refactor order of arguments in buildInput method
Check empty values before building attritubes for form