add validate movies function