Clear form content correctly