Create LoginRequired method.