small improvement to the imap setup form processer
basic output sanitizing
use PHP input filtering to validate POST/GET/SERVER/COOKIE values