isset check on form instead of clear variables

isset check on form instead of clear variables