logging in resource