logout, register, and login functionality.