Add a require_login method