fix form error mesg
cleaning code