Move movie validation into a separate method