Basic login, logout, register and newsitem display functionality.