Use a level to check that the frame is both plumb and level during installation, and adjust as necessary before securing with screws or nails.