I found a mechanic who came to my house and was able to manipulate the headboard and fixed the alignment of legs and headboard.  Now I can enjoy my bed. Thanks