Adding logging to the login page

Every successful login is now stored in the Log table, which is
seperate from the Log_In table.