added login, signup, and log out functionality