Am i stupid

Me and my ex are working things out after i caught him texting his ex. He claimed he was checking up on her because her brother was in the hospital and she depressed and had no bad intentions. He begged day and night and kept telling me he wont stop fighting to get me back or how he wont move on. After a day of thinking, i told him we can be friends and very slowly fix things if they work out. By no means i am easily forgiving him but my heart broke so much and honestly i just missed him. So i told him we can try but he has to prove to me he really wants a relationship with me. Did i do the right thing or am i stupid for going back? Hes my first love and took my virginity too 😕