Minor tweaks

Added "clearOnSuccess" option to clear all the field values and remove the valid class on success.