Modify add logintest and viewdata