Modify both log in functions.
Add log in inserts to log tables