add pg
verify that user is logged in