Relationship does not cure loneliness. You can be in a relationship and be lonely and you can also be married and be lonely. If you don’t overcome loneliness and enjoy your company, you are not ready for relationship/marriage.
The Bible says, ‘Adam was alone but not lonely’. If you go into a relationship because you are lonely, you will make a ship wreak of the relationship. Loneliness is not a curse, that you are without someone in your life does not mean something is wrong with you. Don’t rush, date yourself so you won’t be confused about who to date.