added rspecs for the controller, modified validate_categories method such that it returns all categories if none are selected and added the get_categories code to the model