It is ok to use 12-2 cable. Even with 12-2 you have to use a 15A breaker for lighting circuits which is not strictly correct according to the other answer. If the entire circuit is 12AWG, then a 20A breaker can be used.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.