How are legalism and antinomianism similar? What is the solution to both errors?