fix a typo
make pid and cid int
add topic edit template
add more config for error handle
add login helper
add login check
change home to summary for make a different