The important factor is you should use Transformer at enough size doesn’t lower 2A and IC all stick let off the heat with. The detail is other see in circuit picture better sir.
http://www.circuitpowersupply.com/circuitblog/dc-voltage-regulator-dual-power-supply-5v-to-25v-5v-to-25v-1a-with-lm7805-lm7905/