making inputs immutable on successfull submission