There isn't a nationwide ban on landlords charging three months' rent as security deposit
A California law limits security deposits to one month’s rent beginning July 1 for most rentals. This law isn’t nationwide, although many states have similar laws.