Stuck in boot loop after replacing battery

I replaced a battery in the Samsung Galaxy s5. Charged the battery and now stuck in the Samsung screen. The logo will come on for a few seconds then go off for a few seconds then back on. I can put the old battery back in and it will boot normally and work just fine. Any ideas to why it would do this?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0