I am using this circuit theoretically it should work but on proteus its giving some issue. even if i dont give anything on gate of mosfet still current flows through it.
Please check if there is any mistake in it. I have used two batteries to check result.