I got your point.
You are doing updations with reference of Email ID.
remenber one thing never do that.
You should update logout time by Latest id of logout table which contains primary key.
So your sql query is like that...:)
update tableName set Logout=GETDATE() where id in(select max(id) from tableName )