the right way to secure the railing is to attach a 2*4 on the pillar on both end of rail, secure the rail on the 2*4 stud, and add couple stud squre on the floor, and secure the lower rail bar on the stud.