You can "try" pulling the battery out while it displays the logo. while battery is out, press and hold power button for 5 seconds. Then reinsert battery and see if it will boot properly. If not, then you'll need to do a factory reset of the device, as Chris said above.
If you cannot access recovery, then you'll need to visit Sammobile.com and find your OEM software, and use Odin to reflash it.
Hope this helps!