It’s hard to say exactly from what you have posted, but given that your accuracy on the training set is going 100%, you probably don’t have enough data in the training dataset. You’re overfitting to the training set.