Secured the index action