You may have squared both sides and solved the resulting equation correctly, but did not check the solution in the original equation. You need to substitute into the given equation to see if it is an actual solution or an extraneous solution.