added form validation and RottenTomatoes API use for assignment 6