Changing state after successful submit.