set up basic login, register, logout