Maintain a straight back, engage core muscles, and keep knees aligned over ankles during squats. For deadlifts, hinge at the hips, maintain a neutral spine, and lift with your legs, not your back.
Reference: WebMD – How to Do the Perfect Squat | WebMD – How to Do the Perfect Deadlift