input form cleanup