With the safety rail you only need enough energy to make it to the top of the loop.
Without the safety rail you need enough energy to counteract the gravitational energy at the top of the loop.
The answer you gave is the correct answer for part b, because you need the centripetal force to be strong enough to counteract gravity. This can nicely be worked out in terms of conservation of energy as you have done. Note that the left hand side of your equation is the total initial energy and the right hand side is the total energy at the top of the loop.
Part a is actually even simpler because in this case you don't have to worry at all about the centripetal force, you just need to convert enough potential energy to kinetic energy in order to balance the potential energy at the top of the loop.