Added before filter to Books controller