adding login, logout, and signup functionality