Add form validation.
Switch between edit and save on click.