adding validations to model 'movie.rb'