Added the before action requiring users to log in