triggers.sql. in login(). added check if user already logged in. changes comments elsewhere