Created requires_login wrapper