password_verifyto see if their typed password matches the hashed password stored in the database. Recommended query:
SELECT owner_id,password FROM yourschemaname.owner WHERE email=$1
owner_idbecause that will identify who is logged in.
headercommand. Also, instead of always assigning a new listing to have an
owner_idof 1, you will assign the id value based on the value stored in the session variable.