Implemented login and logout functionality
db has been censored and should be changed to match the DB to connect to