How to build AND Gate using transistors?
So, what is my mistake??


The mistake you have made is that current passing through SW2 will pass through the base and out of the emitter and then through the LED. A BJT has a base-emitter junction that is a forward biased diode.

If you used MOSFETs instead you wouldn't have this problem because the gate is insulated from the source.