register, login, logout fully functional