Eggs play several roles in baking so it is important to make the right swap. There are several egg substitutes you can use and I recommend reading this article if you want to bake without eggs.