Added before filter for authentication