Prevents input values from reverting to their defaults