When trying to lock my door from the outside the barrel seems to be moving and i have difficulty getting my key in the door any suggestions how to fix this?
Depends on the type of lock.
If it's a night latch (Yale type); remove the main case, look for 2 slotted screws holding the barrel in place and tighten up until barrel is secure.