Added controller and task views authentication code