added sql to login