pen tool

Hey, I have a question. I wanted to do something like this (the border):

by redlighttt

and I used the pen tool for it like it says in various tutorials but it comes out like this:


How can I change that?
Are there any other ways to do this border easily?
I need help, please!