added login page, logout functionality, connected database